package com.yalu.entity.data; 

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class ItemDataKey implements Serializable{
	private static final long serialVersionUID = 1381863030241973789L;
	private Integer No;// 
	private String data_date;// 
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass().getPackage() != obj.getClass().getPackage()) {
			return false;
		}
		final ItemDataKey other = (ItemDataKey) obj;
		if (No != null&&data_date!=null&&other.getNo() != null&&other.getData_date()!=null) {
			if (No.equals(other.getNo())&&data_date.equals(other.getData_date())) {
				return true;
			}
		} 
		return false;
	}
	@Override
	public int hashCode() {
		return No == null ? System.identityHashCode(this) : No.hashCode();
	}
	
	public Integer getNo() {
		return No;
	}
	public void setNo(Integer no) {
		No = no;
	}
	public String getData_date() {
		return data_date;
	}
	public void setData_date(String data_date) {
		this.data_date = data_date;
	}
}
 